package ru.ifmo.ipimenov.ewf_svn.standalone.model.db;

import org.apache.commons.logging.LogFactory;
import org.apache.commons.logging.Log;

/**
 * @author: Ilya Pimenov
 * Scartel Starlab company
 */
public class State {
    private Integer id;

    private String name;

    private Category category;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }

    public boolean equals(Object o){
        if (! (o instanceof State)){
            return false;
        }
        State s = (State)o;
        if (! s.getName().equals(this.name)){
            return false;
        }
        return true;
    }
}
